package ModLayer;
import java.io.*;

/**
 * Write a description of class Customer here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Customer extends PersonInformations implements Serializable
{
    private String customerNo;
    private String dateOfRegistration;
    private String owe;
    
    public Customer(String name, String email, String address,
    String phoneNo, String customerNo)
    {
        super(name, email, address, phoneNo);
        this.customerNo = customerNo;
        owe = "0";
        
        dateOfRegistration = (customerNo.substring(0,2)+"-"
        +customerNo.substring(2,4)+"-"+customerNo.substring(4,8));
    }
    
    public void setOwe(String owe)
    {
        this.owe = owe;
    }
    
    public String getCustomerNumber()
    {
        return customerNo;
    }
    
    public String getDateOfRegistration()
    {
        return dateOfRegistration;
    }
    
    public String getOwe()
    {
        return owe;
    }
    
    public String toString()
    {
        return "Customer";
    }
}